package com.j180.demo.bean;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_student")
public class StudentBean implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    @TableField("name")
    private String name;
    @TableField("gender")
    private String gender;
    @TableField("age")
    private int age;
    @TableField(exist = false)
    private ClassBean classBean;
    @TableLogic(value = "0",delval ="1" )
    @TableField("isdeleted")
    @JsonIgnore
    private Integer isdeleted;
    @TableField(value = "insertTime",fill = FieldFill.INSERT_UPDATE)
    @JsonIgnore
    private LocalDateTime insertTime;
    @TableField(value = "updateTime",fill = FieldFill.INSERT_UPDATE)
    @JsonIgnore
    private LocalDateTime updateTime;



}
